<template>
  <el-button @click="downloadTemplate">Excel模板下载</el-button>
  <a href="@../../public/static/cs.csv"></a>
</template>

<script setup>
function downloadTemplate() {
  let a = document.createElement('a')
  a.href = '@../../public/static/cs.csv'
  a.download = '文件模板.xlsx'
  a.style.display = 'none'
  document.body.appendChild(a)
  a.click()
  a.remove()
}
</script>

<style lang="scss" scoped></style>
},
